package com.hzit.sk.mapper;

import com.hzit.sk.model.Goods;
import com.hzit.sk.model.GoodsDeatailInfo;
import com.hzit.sk.model.SkillGoodsInfo;
import com.hzit.sk.resp.GoodsDeatailData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsMapper {



    int deleteByPrimaryKey(Long id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKeyWithBLOBs(Goods record);

    int updateByPrimaryKey(Goods record);

    /**
     * 查询秒杀的商品列表
     * @return
     */
    List<SkillGoodsInfo> querySkillGoods();

    /**
     *
     * @param goodsId
     * @return
     */
    GoodsDeatailInfo queryDeatailDataById(@Param("goodsId") String goodsId);
}